let model = require("../model/type");

module.exports = {
  add: (list) => {
    return model.insertMany(list);
  },
  query: (params) => {
    return model.find(params);
  },
  del: (params) => {
    return model.deleteOne(params);
  },
};
